home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Language/OS - Multiplatform Resource Library
/
LANGUAGE OS.iso
/
cpp_libs
/
answrbok
/
7_7.lha
/
7_7
/
7_7insert.c
< prev
next >
Wrap
Text File
|
1993-08-08
|
415b
|
18 lines
* Copyright (c) 1990 by AT&T Bell Telephone Laboratories, Incorporated. */
* The C++ Answer Book */
* Tony Hansen */
* All rights reserved. */
/ insert an entry at the beginning of the list
oid dlist_iterator::insert(ent a)
if (curr_dlist->last)
curr_dlist->last->next->insert(new dlink(a));
else
{
curr_dlist->last = new dlink(a);
curr_dlist->last->next =
curr_dlist->last->prev = curr_dlist->last;
}